$:.unshift( File.expand_path( '../lib', File.dirname( __FILE__ ) ) )
require 'notator'

j = Notator::JavascriptObjectNotation.new( :pretty => true )

j.name "OnTerra Research Inc."
j.address do
  j.street  "5400 Carillon Point."
  j.street2 "Building 5000"
  j.city    "Kirkland"
  j.state   "WA"
  j.zip     98029
end

j.array! :platforms do
  j.value! :mac_os_x
  j.value! :windows
  j.value! :web
  j.value! :ios
  j.value! :android
end

j.technologies do 
  j.array! :javascript, [ 'dom', 'extjs', 'jquery' ]
  j.array! :ruby, [ 'rails' ]
  j.array! :db, [ 'mysql', 'mongodb' ]
end

puts j.to_json
